home *** CD-ROM | disk | FTP | other *** search
- 131
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- CopyXFilesProgress
- --- RECORDSEPARATOR ---
- Platform:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows and Macintosh
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Description:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baCopyXFilesProgress copies multiple files, while displaying a progress dialog
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Usage:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Result = baCopyXFilesProgress( SourceDir , DestDir , FileSpec, Overwrite, Title,
- --- RECORDSEPARATOR ---
- ButtonText, Flags )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Arguments:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- String, string, string, string, string, string, integer.
- --- RECORDSEPARATOR ---
- SourceDir is the folder to copy from.
- --- RECORDSEPARATOR ---
- DestDir is the folder to copy to.
- --- RECORDSEPARATOR ---
- FileSpec determines what files are copied.
- --- RECORDSEPARATOR ---
- Overwrite determines how the copy is done. Can be:
- --- RECORDSEPARATOR ---
- "Always"
- --- RECORDSEPARATOR ---
- always copies the file
- --- RECORDSEPARATOR ---
- "IfNewer"
- --- RECORDSEPARATOR ---
- copies the file if SourceFile is newer than DestFile
- --- RECORDSEPARATOR ---
- "IfNotExist"
- --- RECORDSEPARATOR ---
- copies only i
- --- RECORDSEPARATOR ---
- f DestFile does not already exist
- --- RECORDSEPARATOR ---
- Title is the title of the dialog box.
- --- RECORDSEPARATOR ---
- ButtonText is the text to use in the Cancel button.
- --- RECORDSEPARATOR ---
- Flags changes the behaviour of the dialog, see notes for details.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Returns:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Integer.
- --- RECORDSEPARATOR ---
- Returns 0 if the file was copied successfully, otherwise one of these:
- --- RECORDSEPARATOR ---
- 1
- --- RECORDSEPARATOR ---
- Invalid Source file name
- --- RECORDSEPARATOR ---
- 2
- --- RECORDSEPARATOR ---
- Invalid Dest file name
- --- RECORDSEPARATOR ---
- 3
- --- RECORDSEPARATOR ---
- Error reading the Source file
- --- RECORDSEPARATOR ---
- 4
- --- RECORDSEPARATOR ---
- Error writing the Dest file
- --- RECORDSEPARATOR ---
- 5
- --- RECORDSEPARATOR ---
- Couldn't create directory for Dest file
- --- RECORDSEPARATOR ---
- 6
- --- RECORDSEPARATOR ---
- Dest file exists
- --- RECORDSEPARATOR ---
- 7
- --- RECORDSEPARATOR ---
- Dest file is newer that Source file
- --- RECORDSEPARATOR ---
- 8
- --- RECORDSEPARATOR ---
- No files matched the specified type
- --- RECORDSEPARATOR ---
- 9
- --- RECORDSEPARATOR ---
- User cancelled the copy
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Examples:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Director:
- --- RECORDSEPARATOR ---
- OK = baCopyXFilesProgress( "c:\data" , "d:\backup" , "*.dat", "IfNewer", "Backing
- --- RECORDSEPARATOR ---
- up files... ", "Cancel", 0 )
- --- RECORDSEPARATOR ---
- Authorware:
- --- RECORDSEPARATOR ---
- OK := baCopyXFilesProgress( "c:\\data" , "d:\\backup" , "*.dat", "IfNewer" , "Backing
- --- RECORDSEPARATOR ---
- up files... ", "Cancel", 0 )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Notes:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- By default, this function will not overwrite an existing file if that file is marked as
- --- RECORDSEPARATOR ---
- read-only. However, on Windows, by adding
- --- RECORDSEPARATOR ---
- "
- --- RECORDSEPARATOR ---
- +
- --- RECORDSEPARATOR ---
- "
- --- RECORDSEPARATOR ---
- to the
- --- RECORDSEPARATOR ---
- "
- --- RECORDSEPARATOR ---
- Always
- --- RECORDSEPARATOR ---
- "
- --- RECORDSEPARATOR ---
- and
- --- RECORDSEPARATOR ---
- "
- --- RECORDSEPARATOR ---
- IfNewer
- --- RECORDSEPARATOR ---
- "
- --- RECORDSEPARATOR ---
- options (eg "Always+" or "IfNewer+"), the destination files will be overwritten if they
- --- RECORDSEPARATOR ---
- are read-only.
- --- RECORDSEPARATOR ---
- The return value will not be 0 if any file is not copied. For example, if you specify
- --- RECORDSEPARATOR ---
- baCopyXFilesProgress( "c:\data" , "d:\backup" , "*.*" , "IfNewer", ....... )
- --- RECORDSEPARATOR ---
- and any of the files in c:\data are newer than the ones in d:\backup, the return
- --- RECORDSEPARATOR ---
- result will be 7 (Dest file is newer than Source). A result of 0 will be returned only if
- --- RECORDSEPARATOR ---
- none of the files in c:\data is newer than d:\backup.
- --- RECORDSEPARATOR ---
- A return value of 6 (Dest file exists) can only be returned when Overwrite is
- --- RECORDSEPARATOR ---
- "IfNotExist".
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- (continued next page)